package com.sx.gongzhong.net;

import com.sx.gongzhong.model.BannerBean;
import com.sx.gongzhong.model.BasePageListBean;
import com.sx.gongzhong.model.CheckInBean;
import com.sx.gongzhong.model.CheckRecords;
import com.sx.gongzhong.model.CommentBean;
import com.sx.gongzhong.model.DefendRoadBean;
import com.sx.gongzhong.model.ExposureBean;
import com.sx.gongzhong.model.ExposureDetailBean;
import com.sx.gongzhong.model.IntegralBean;
import com.sx.gongzhong.model.LetterBean;
import com.sx.gongzhong.model.MessageBean;
import com.sx.gongzhong.model.PhotoBean;
import com.sx.gongzhong.model.PublicBean;
import com.sx.gongzhong.model.PublicTotalBean;
import com.sx.gongzhong.model.ReplyUserBean;
import com.sx.gongzhong.model.SplashBean;
import com.sx.gongzhong.model.UserInfoBean;
import com.sx.gongzhong.model.VersionBean;
import com.sx.gongzhong.model.WebListItemBean;

import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;


/**
 * Created by XZY on 2017/11/30.
 *  api 代码管理层
 */
public class ApiManager {

    /**
     *  首页版本信息
     */
    public Call getVersionMessage(Map<String,Object> map, BaseCallBack<ReplyUserBean.BaseResult<VersionBean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<VersionBean>> resultCall = service.getVersionMessage(map);
        resultCall.enqueue(callBack);
        return resultCall;
    }
    /**
     * 上传文件
     */
    public void upLoadMultiFile(Map<String, Object> map, List<File> files,
                                       BaseCallBack<ReplyUserBean.BaseResult<List<PhotoBean>>> baseCallBack) {
        List<MultipartBody.Part> parts = new ArrayList<>();
        if (files != null && files.size() > 0) {
            for (int i = 0; i < files.size(); i++) {
                RequestBody imageBody = RequestBody.create(MediaType.parse("multipart/form-data"), files.get(i));
                MultipartBody.Part part = MultipartBody.Part.createFormData("file", files.get(i).getName(), imageBody);
                parts.add(part);
            }
        }
        ApiManagerService service =ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<List<PhotoBean>>> resultCall = service.upLoadMultiFile(map, parts);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *获取所有字典项
     */
    public void getPublicBean(BaseCallBack<ReplyUserBean.BaseResult<List<PublicTotalBean>>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<List<PublicTotalBean>>> resultCall = service.getPublicBean();
        resultCall.enqueue(callBack);
    }
    /**
     *获取子类字典列表
     */
    public void getPublicList(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<List<PublicBean>>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<List<PublicBean>>> resultCall = service.getPublicList(map);
        resultCall.enqueue(callBack);
    }
    /**
     *  获取验证码
     */
    public void getVerifyCode(Map<String, Object> map, int type, BaseCallBack<ReplyUserBean.BaseResult<Boolean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Boolean>> resultCalll = null;
        if (type == 1){//注册
            resultCalll = service.getVerifyCode("/api/sms/verifyShort/sendRegisterVerifyShortSMS",map);
        }else if (type == 2){//忘记密码
            resultCalll = service.getVerifyCode("/api/sms/verifyShort/sendForgetVerifyShortSMS",map);
        }else if (type==3){//更换手机号
            resultCalll = service.getVerifyCode("/api/sms/verifyShort/sendEditPhoneVerifyShortSMS",map);
        }
        resultCalll.enqueue(callBack);
    }
    /**
     * 校验验证码
     */
    public void checkVerifyCode(Map<String, Object> map, int type, BaseCallBack<ReplyUserBean.BaseResult<String>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<String>> resultCalll = null;
        if (type == 1){//注册
            resultCalll = service.checkVerifyCode("/api/sms/verifyShort/validRegisterVerifyShortSMS",map);
        }else if (type == 2){//忘记密码
            resultCalll = service.checkVerifyCode("/api/sms/verifyShort/validForgetVerifyShortSMS",map);
        }
        resultCalll.enqueue(callBack);
    }
    /**
     *  注册
     */
    public void register(Map<String,Object> map, BaseCallBack<ReplyUserBean.BaseResult<Void>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Void>> resultCall = service.register(map);
        resultCall.enqueue(callBack);
    }
    /**
     *  登录
     */
    public void login(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<UserInfoBean>> callBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<UserInfoBean>> resultCall = service.login(map);
        resultCall.enqueue(callBack);
    }
    /**
     *  修改用户信息
     */
    public void updateUserInfo(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Void>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Void>> resultCall = service.updateUserInfo(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 用户忘记密码
     */
    public void forgetpwd(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Boolean>> resultCall = service.forgetpwd(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 用户修改密码
     */
    public void updatePassword(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Boolean>> resultCall = service.updatePassword(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 修改手机号
     */
    public void updatePhone(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Void>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Void>> resultCall = service.updatePhone(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 首页banner
     */
    public void getBanner(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<List<BannerBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<List<BannerBean>>> resultCall = service.getBanner(map);
        resultCall.enqueue(baseCallBack);
    }
    /**获取便民公告列表
     */
    public void getConvenniceAnnounceData(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<BasePageListBean<WebListItemBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<BasePageListBean<WebListItemBean>>> resultCall = service.getConvenniceAnnounceData(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 办事指南列表
     */
    public void getGuidanceData(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<BasePageListBean<WebListItemBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<BasePageListBean<WebListItemBean>>> resultCall = service.getGuidanceData(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取平安宣传列表
     */
    public void getPromotePeaceData(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<BasePageListBean<WebListItemBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<BasePageListBean<WebListItemBean>>> resultCall = service.getPromotePeaceData(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *  新增爆料
     */
    public void addExposure(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Void>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Void>> resultCall = service.addExposure(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *  删除爆料
     */
    public void deleteExposure(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Boolean>> resultCall = service.deleteExposure(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *  爆料点赞
     */
    public void praiseExposure(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Integer>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Integer>> resultCall = service.praiseExposure(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 爆料回复列表
     */
    public void replyExposureList(Map<String, Object> map,
                                  BaseCallBack<ReplyUserBean.BaseResult<BasePageListBean<CommentBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<BasePageListBean<CommentBean>>> resultCall = service.replyExposureList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *  爆料回复
     */
    public void replyExposure(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Void>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Void>> resultCall = service.replyExposure(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 爆料回复删除
     */
    public void replyExposureDelete(Map<String, Object> map,
                                  BaseCallBack<ReplyUserBean.BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Boolean>> resultCall = service.replyExposureDelete(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *  获取爆料列表
     */
    public void loadExposureList(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<BasePageListBean<ExposureBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<BasePageListBean<ExposureBean>>> resultCall = service.loadExposureList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *  获取爆料详情
     */
    public void loadExposureDetail(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<ExposureDetailBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<ExposureDetailBean>> resultCall = service.loadExposureDetail(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *  举报
     */
    public void report(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Void>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Void>> resultCall = service.report(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 添加禁言
     */
    public void addForbidden(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Void>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Void>> resultCall = service.addForbidden(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 删除评论
     */
    public void deleteCommon(String url, Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Boolean>> resultCall = service.deleteCommon(url,map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 添加举报
     */
    public void addReport(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Void>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Void>> resultCall = service.addReport(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 新增全民护路
     */
    public void addDefendRoad(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Void>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Void>> resultCall = service.addDefendRoad(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 全民护路列表
     */
    public void loadDefendRoadList(Map<String, Object> map,
                                   BaseCallBack<ReplyUserBean.BaseResult<BasePageListBean<DefendRoadBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<BasePageListBean<DefendRoadBean>>> resultCall = service.loadDefendRoadList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 全民护路详情
     * 暂时从列表传递 不用
     */
    public void loadDefendRoadDetail(Map<String, Object> map,
                                   BaseCallBack<ReplyUserBean.BaseResult<DefendRoadBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<DefendRoadBean>> resultCall = service.loadDefendRoadDetail(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 删除全民护路
     */
    public void deleteDefendRoad(Map<String, Object> map,
                                    BaseCallBack<ReplyUserBean.BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Boolean>> resultCall = service.deleteDefendRoad(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 获取全民护路的回复列表
     */
    public void loadDefendRoadReplyList(Map<String, Object> map,
                                    BaseCallBack<ReplyUserBean.BaseResult<BasePageListBean<CommentBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<BasePageListBean<CommentBean>>> resultCall = service.loadDefendRoadReplyList(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 我的信访举报 列表
     */
    public void getMyLettersListData(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<BasePageListBean<LetterBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<BasePageListBean<LetterBean>>> resultCall = service.getMyLettersListData(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *我的全民护路列表
     */
    public void myDefendRoadList(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<BasePageListBean<DefendRoadBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<BasePageListBean<DefendRoadBean>>> resultCall = service.myDefendRoadList(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     *我的爆料
     */
    public void loadMyAddExposureList(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<BasePageListBean<ExposureBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<BasePageListBean<ExposureBean>>> resultCall = service.loadMyAddExposureList(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 问题反馈
     */
    public void addFeedBack(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Void>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Void>> resultCall = service.addFeedBack(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 启动界面配图
     */
    public void getSplashData(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<SplashBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<SplashBean>> resultCall = service.getSplashData(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 系统通知
     */
    public void getMessageNotifyListData(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<BasePageListBean<MessageBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<BasePageListBean<MessageBean>>> resultCall = service.getMessageNotifyListData(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 系统通知 删除
     */
    public void deleteMessageNotify(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Boolean>> resultCall = service.deleteMessageNotify(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *系统通知 标记已读
     */
    public void readMessageNotify(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Boolean>> resultCall = service.readMessageNotify(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *系统通知 未读数量
     */
    public void getNotifyUnreadNum(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Integer>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Integer>> resultCall = service.getNotifyUnreadNum(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     * 动态信息
     */
    public void getMessageDynamicListData(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<BasePageListBean<MessageBean>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<BasePageListBean<MessageBean>>> resultCall = service.getMessageDynamicListData(map);
        resultCall.enqueue(baseCallBack);
    }

    /**
     * 动态信息 删除
     */
    public void deleteMessageDynamic(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Boolean>> resultCall = service.deleteMessageDynamic(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *动态信息 标记已读
     */
    public void readMessageDynamic(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Boolean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Boolean>> resultCall = service.readMessageDynamic(map);
        resultCall.enqueue(baseCallBack);
    }
    /**
     *动态信息 未读数量
     */
    public void getDynamicUnreadNum(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<Integer>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<Integer>> resultCall = service.getDynamicUnreadNum(map);
        resultCall.enqueue(baseCallBack);
    }
/**签到*/
    public void setCheckIn(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<CheckRecords>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<CheckRecords>> resultCall = service.setCheckIn(map);
        resultCall.enqueue(baseCallBack);
    }

    /**签到统计*/
    public void getCheckInCount(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<CheckInBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<CheckInBean>> resultCall = service.getCheckInCount(map);
        resultCall.enqueue(baseCallBack);
    }
    /**签到历史*/
    public void getCheckInList(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<List<CheckRecords>>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<List<CheckRecords>>> resultCall = service.getCheckInList(map);
        resultCall.enqueue(baseCallBack);
    }
    /**我的积分*/
    public void getMyIntegral(Map<String, Object> map, BaseCallBack<ReplyUserBean.BaseResult<IntegralBean>> baseCallBack) {
        ApiManagerService service = ServiceFactory.getInstance().createNewService(ApiManagerService.class);
        Call<ReplyUserBean.BaseResult<IntegralBean>> resultCall = service.getMyIntegral(map);
        resultCall.enqueue(baseCallBack);
    }
}
